package com.grandtech.insurance.domain;

import java.io.Serializable;

/**
 * @author 
 * 家庭成员信息表
 */
public class DbJtcyxx implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 用户证件号
     */
    private String idcode;

    /**
     * 与客户关系
     */
    private String gxdm;

    /**
     * 与客户关系名称
     */
    private String gxmc;

    /**
     * 姓名
     */
    private String gxname;

    /**
     * 证件号码
     */
    private String gxidCode;

    /**
     * 年份
     */
    private String nf;

    /**
     * 备注
     */
    private String bz;

    /**
     * 项目编码
     */
    private String xmbm;


    //关系代码
    private String glnhdm;
    private String nhxm;
    private String nhdm;

    private int flag = 0;

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getGlnhdm() {
        return glnhdm;
    }

    public void setGlnhdm(String glnhdm) {
        this.glnhdm = glnhdm;
    }

    public String getNhxm() {
        return nhxm;
    }

    public void setNhxm(String nhxm) {
        this.nhxm = nhxm;
    }

    public String getNhdm() {
        return nhdm;
    }

    public void setNhdm(String nhdm) {
        this.nhdm = nhdm;
    }

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }

    public String getGxdm() {
        return gxdm;
    }

    public void setGxdm(String gxdm) {
        this.gxdm = gxdm;
    }

    public String getGxmc() {
        return gxmc;
    }

    public void setGxmc(String gxmc) {
        this.gxmc = gxmc;
    }

    public String getGxname() {
        return gxname;
    }

    public void setGxname(String gxname) {
        this.gxname = gxname;
    }

    public String getGxidCode() {
        return gxidCode;
    }

    public void setGxidCode(String gxidCode) {
        this.gxidCode = gxidCode;
    }

    public String getNf() {
        return nf;
    }

    public void setNf(String nf) {
        this.nf = nf;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getXmbm() {
        return xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbJtcyxx other = (DbJtcyxx) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIdcode() == null ? other.getIdcode() == null : this.getIdcode().equals(other.getIdcode()))
            && (this.getGxdm() == null ? other.getGxdm() == null : this.getGxdm().equals(other.getGxdm()))
            && (this.getGxmc() == null ? other.getGxmc() == null : this.getGxmc().equals(other.getGxmc()))
            && (this.getGxname() == null ? other.getGxname() == null : this.getGxname().equals(other.getGxname()))
            && (this.getGxidCode() == null ? other.getGxidCode() == null : this.getGxidCode().equals(other.getGxidCode()))
            && (this.getNf() == null ? other.getNf() == null : this.getNf().equals(other.getNf()))
            && (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))
            && (this.getXmbm() == null ? other.getXmbm() == null : this.getXmbm().equals(other.getXmbm()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIdcode() == null) ? 0 : getIdcode().hashCode());
        result = prime * result + ((getGxdm() == null) ? 0 : getGxdm().hashCode());
        result = prime * result + ((getGxmc() == null) ? 0 : getGxmc().hashCode());
        result = prime * result + ((getGxname() == null) ? 0 : getGxname().hashCode());
        result = prime * result + ((getGxidCode() == null) ? 0 : getGxidCode().hashCode());
        result = prime * result + ((getNf() == null) ? 0 : getNf().hashCode());
        result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
        result = prime * result + ((getXmbm() == null) ? 0 : getXmbm().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", idcode=").append(idcode);
        sb.append(", gxdm=").append(gxdm);
        sb.append(", gxmc=").append(gxmc);
        sb.append(", gxname=").append(gxname);
        sb.append(", gxidCode=").append(gxidCode);
        sb.append(", nf=").append(nf);
        sb.append(", bz=").append(bz);
        sb.append(", xmbm=").append(xmbm);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}